a = int(input("请输入a的值（0 < a ≤ 9）："))
n = int(input("请输入n的值："))

s = 0
current = 0
for _ in range(n):
    current = current * 10 + a
    s += current

print(f"s的值为：{s}")